package com.binarysoft.service.common.http;

import java.util.Collection;

import org.mortbay.jetty.Handler;

import common.framework.dsb.DynamicService;

public interface HttpService extends DynamicService {
	/**
	 * Add new http handler.
	 * 
	 * @param uriName
	 *            uri must be configured in http-service.xml
	 * @param handler
	 *            Handler class name
	 * @throws Exception
	 */
	void addHandler(String uriName, Handler handler) throws Exception;

	/**
	 * List add handlers.
	 * 
	 * @return
	 * @throws Exception
	 */
	Collection<HandlerConfig> listHandler() throws Exception;
}
